import request from "@/utils/request";

export function login(datas) {
  return request({
    //baseURL: "/dev-api",
    //url: "/vue-element-admin/user/login",
    url: "/sys/user/login",
    method: "post",
    data: datas,
  });
}

export function getInfo(token) {
  return request({
    baseURL: "/dev-api",
    url: "/vue-element-admin/user/info",
    method: "get",
    params: { token },
  });
}

export function logout() {
  return request({
    baseURL: "/dev-api",
    url: "/vue-element-admin/user/logout",
    method: "post",
  });
}
